package com.hunttown.mes.rpc.domain;

import java.io.Serializable;
import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

/**
 * created by wangjunfu on 2022-03-30 15:28:33
 */
public class MesProduceOrderDTO implements Serializable {
    private Integer id;
    private Integer entId;
    private Integer parentId;
    private String orderName;
    private String orderCode;
    private Integer orderType;
    private Integer productId;
    private String productName;
    private String specialName;
    private String modalName;
    private String saleIds;
    private String batchNumber;
    private Integer estimateCount;
    private Integer realCount;
    private Date estimateStartTime;
    private Date estimateEndTime;
    private Integer snRule;
    private Integer materialReady;
    private Integer status;
    private Integer operator;
    private Date operateTime;
    private Integer shipId;
    private Integer produceLine;
    private Date startTime;
    private Date endTime;
    private Integer outputCount;
    private Integer damageCount;
    private BigDecimal goodRate;
    private Integer isInStore;
    private Integer applyId;
    private String remark;
    private Integer adminId;
    private Date createTime;
    private Integer stopFlag;
    private Integer deleteFlag;

    private String orderTypeName;
    private String estimateStartTimeSr;
    private String estimateEndTimeSr;
    private String operateTimeSr;
    private String startTimeSr;
    private String endTimeSr;
    private String snRuleName;
    private String materialReadyName;
    private String operatorCn;
    private String statusName;
    private String shipName;
    private String produceLineName;

    private List<MesProduceOrderDTO> childList; //拆出来的子单

    //以下内容由Alt+Ins快捷生成

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getEntId() {
        return entId;
    }

    public void setEntId(Integer entId) {
        this.entId = entId;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getOrderName() {
        return orderName;
    }

    public void setOrderName(String orderName) {
        this.orderName = orderName;
    }

    public String getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }

    public Integer getOrderType() {
        return orderType;
    }

    public void setOrderType(Integer orderType) {
        this.orderType = orderType;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getSpecialName() {
        return specialName;
    }

    public void setSpecialName(String specialName) {
        this.specialName = specialName;
    }

    public String getModalName() {
        return modalName;
    }

    public void setModalName(String modalName) {
        this.modalName = modalName;
    }

    public String getSaleIds() {
        return saleIds;
    }

    public void setSaleIds(String saleIds) {
        this.saleIds = saleIds;
    }

    public String getBatchNumber() {
        return batchNumber;
    }

    public void setBatchNumber(String batchNumber) {
        this.batchNumber = batchNumber;
    }

    public Integer getEstimateCount() {
        return estimateCount;
    }

    public void setEstimateCount(Integer estimateCount) {
        this.estimateCount = estimateCount;
    }

    public Integer getRealCount() {
        return realCount;
    }

    public void setRealCount(Integer realCount) {
        this.realCount = realCount;
    }

    public Date getEstimateStartTime() {
        return estimateStartTime;
    }

    public void setEstimateStartTime(Date estimateStartTime) {
        this.estimateStartTime = estimateStartTime;
    }

    public Date getEstimateEndTime() {
        return estimateEndTime;
    }

    public void setEstimateEndTime(Date estimateEndTime) {
        this.estimateEndTime = estimateEndTime;
    }

    public Integer getSnRule() {
        return snRule;
    }

    public void setSnRule(Integer snRule) {
        this.snRule = snRule;
    }

    public Integer getMaterialReady() {
        return materialReady;
    }

    public void setMaterialReady(Integer materialReady) {
        this.materialReady = materialReady;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getOperator() {
        return operator;
    }

    public void setOperator(Integer operator) {
        this.operator = operator;
    }

    public Date getOperateTime() {
        return operateTime;
    }

    public void setOperateTime(Date operateTime) {
        this.operateTime = operateTime;
    }

    public Integer getShipId() {
        return shipId;
    }

    public void setShipId(Integer shipId) {
        this.shipId = shipId;
    }

    public Integer getProduceLine() {
        return produceLine;
    }

    public void setProduceLine(Integer produceLine) {
        this.produceLine = produceLine;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Integer getOutputCount() {
        return outputCount;
    }

    public void setOutputCount(Integer outputCount) {
        this.outputCount = outputCount;
    }

    public Integer getDamageCount() {
        return damageCount;
    }

    public void setDamageCount(Integer damageCount) {
        this.damageCount = damageCount;
    }

    public BigDecimal getGoodRate() {
        return goodRate;
    }

    public void setGoodRate(BigDecimal goodRate) {
        this.goodRate = goodRate;
    }

    public Integer getIsInStore() {
        return isInStore;
    }

    public void setIsInStore(Integer isInStore) {
        this.isInStore = isInStore;
    }

    public Integer getApplyId() {
        return applyId;
    }

    public void setApplyId(Integer applyId) {
        this.applyId = applyId;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getAdminId() {
        return adminId;
    }

    public void setAdminId(Integer adminId) {
        this.adminId = adminId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getStopFlag() {
        return stopFlag;
    }

    public void setStopFlag(Integer stopFlag) {
        this.stopFlag = stopFlag;
    }

    public Integer getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(Integer deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    public String getOrderTypeName() {
        return orderTypeName;
    }

    public void setOrderTypeName(String orderTypeName) {
        this.orderTypeName = orderTypeName;
    }

    public String getEstimateStartTimeSr() {
        if (estimateStartTimeSr == null || estimateStartTimeSr.equals("")) {
            SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");

            if (estimateStartTime == null) {
                return "1990-01-01";
            } else {
                return df.format(new Date(estimateStartTime.getTime()));
            }
        } else {
            return estimateStartTimeSr;
        }
    }

    public void setEstimateStartTimeSr(String estimateStartTimeSr) {
        this.estimateStartTimeSr = estimateStartTimeSr;
    }

    public String getEstimateEndTimeSr() {
        if (estimateEndTimeSr == null || estimateEndTimeSr.equals("")) {
            SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");

            if (estimateEndTime == null) {
                return "1990-01-01";
            } else {
                return df.format(new Date(estimateEndTime.getTime()));
            }
        } else {
            return estimateEndTimeSr;
        }
    }

    public void setEstimateEndTimeSr(String estimateEndTimeSr) {
        this.estimateEndTimeSr = estimateEndTimeSr;
    }

    public String getOperateTimeSr() {
        if (operateTimeSr == null || operateTimeSr.equals("")) {
            SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

            if (operateTime == null) {
                return "1990-01-01";
            } else {
                return df.format(new Date(operateTime.getTime()));
            }
        } else {
            return operateTimeSr;
        }
    }

    public void setOperateTimeSr(String operateTimeSr) {
        this.operateTimeSr = operateTimeSr;
    }

    public String getStartTimeSr() {
        if (startTimeSr == null || startTimeSr.equals("")) {
            SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

            if (startTime == null) {
                return "1990-01-01";
            } else {
                return df.format(new Date(startTime.getTime()));
            }
        } else {
            return startTimeSr;
        }
    }

    public void setStartTimeSr(String startTimeSr) {
        this.startTimeSr = startTimeSr;
    }

    public String getEndTimeSr() {
        if (endTimeSr == null || endTimeSr.equals("")) {
            SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

            if (endTime == null) {
                return "1990-01-01";
            } else {
                return df.format(new Date(endTime.getTime()));
            }
        } else {
            return endTimeSr;
        }
    }

    public void setEndTimeSr(String endTimeSr) {
        this.endTimeSr = endTimeSr;
    }

    public String getSnRuleName() {
        return snRuleName;
    }

    public void setSnRuleName(String snRuleName) {
        this.snRuleName = snRuleName;
    }

    public String getMaterialReadyName() {
        return materialReadyName;
    }

    public void setMaterialReadyName(String materialReadyName) {
        this.materialReadyName = materialReadyName;
    }

    public String getOperatorCn() {
        return operatorCn;
    }

    public void setOperatorCn(String operatorCn) {
        this.operatorCn = operatorCn;
    }

    public String getStatusName() {
        return statusName;
    }

    public void setStatusName(String statusName) {
        this.statusName = statusName;
    }

    public String getShipName() {
        return shipName;
    }

    public void setShipName(String shipName) {
        this.shipName = shipName;
    }

    public String getProduceLineName() {
        return produceLineName;
    }

    public void setProduceLineName(String produceLineName) {
        this.produceLineName = produceLineName;
    }

    public List<MesProduceOrderDTO> getChildList() {
        return childList;
    }

    public void setChildList(List<MesProduceOrderDTO> childList) {
        this.childList = childList;
    }
}